package com.example.exam.util;


import com.fasterxml.jackson.databind.ObjectMapper;
import com.sun.corba.se.impl.ior.OldJIDLObjectKeyTemplate;

import java.io.IOException;

public class JSON {

    public static ObjectMapper objectMapper=new ObjectMapper();

    public static String writeToString(Object object)throws IOException {
        return objectMapper.writeValueAsString(object);
    }


}
